#pragma once
#include "utility.h"
#include "ComboExtend.h"
#include "TimeUI.h"
#include <set>

class CAddDutyDlg :
	public WindowImplBase
{
public:
	CAddDutyDlg();
	virtual ~CAddDutyDlg();
	LPCTSTR GetWindowClassName() const { return _T("CAddDutyDlg"); }
	virtual CDuiString GetSkinFile() { return _T("AddDuty.xml"); }
	virtual CDuiString GetSkinFolder() { return  _T("skin"); }
	virtual void InitWindow();
	virtual CControlUI* CreateControl(LPCTSTR pstrClass);
	virtual LRESULT OnNcActivate(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& bHandled);

	DUI_DECLARE_MESSAGE_MAP()
	void OnOKBtnClick(TNotifyUI& msg);
public:
	stDuty		m_Duty;
	CComboExUI*	m_pCboName;
	CComboExUI*	m_pCboArea;
	CTimeUI*	m_pTimeBegin;
	CTimeUI*	m_pTimeEnd;
	CLabelUI*	m_pLabTitle = nullptr;
};

class CNameElement :
	public CListLabelElementUI
{
public:
	CNameElement(Emp_PTR& emp) :m_ptrEmp(emp){
		SetText(m_ptrEmp->strEmpName.c_str());
	}
	virtual ~CNameElement(){}
	Emp_PTR m_ptrEmp;
};

